package QC.MessageBox.beans.wxmsg.eventmsg;

import QC.MessageBox.beans.wxmsg.BaseWXMsg;

/**
 * Created by Andaren on 2017/4/27.
 * Used for: 微信用户扫描二维码事件消息
 */
public class WXQRCodeMsg extends BaseWXMsg {

    private String event;       // 事件通知类型
    private String eventKey;    // 事件KEY值，qrscene_为前缀，后面为二维码的参数值
    private String ticket;      // 二维码的ticket，可用来换取二维码图片

    public String getEvent() {
        return event;
    }

    public WXQRCodeMsg setEvent(String event) {
        this.event = event;
        return this;
    }

    public String getEventKey() {
        return eventKey;
    }

    public WXQRCodeMsg setEventKey(String eventKey) {
        this.eventKey = eventKey;
        return this;
    }

    public String getTicket() {
        return ticket;
    }

    public WXQRCodeMsg setTicket(String ticket) {
        this.ticket = ticket;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("WXQRCodeMsg{");
        sb.append("event='").append(event).append('\'');
        sb.append(", eventKey='").append(eventKey).append('\'');
        sb.append(", ticket='").append(ticket).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
